﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using Acaweb.Model.Entities;

namespace Acaweb.Servicios.Contracts
{
    [ServiceContract]
    public interface IFormulariosService
    {
        [WebInvoke(Method = "POST", UriTemplate = "GetById", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        TiposFormularios GetById(int Id);

        [WebInvoke(Method = "POST", UriTemplate = "SaveForm", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        [OperationContract]
        void SaveForm(Suscritos Formulario, List<ValoresFormularios> Valores);

        [WebInvoke(Method = "POST", UriTemplate = "GetByFormulario", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        List<Suscritos> GetByFormulario(int IdFormulario);
    }
}
